<template>
  <div class="table-box">
    <ProTable ref="proRef" :columns="columns" :pagination="false" :request-api="getTemplateList"></ProTable>
  </div>
</template>

<script setup lang="ts">
import ProTable from "@/components/ProTable/index.vue";
import { ColumnProps } from "@/components/ProTable/interface";
import { ref } from "vue";
import { getTemplateList } from "@/api/modules/wechat";
const proRef = ref<InstanceType<typeof ProTable> | null>();
const columns: ColumnProps[] = [
  { prop: "template_id", label: "模板ID" },
  { prop: "title", label: "模板标题", width: 130 },
  { prop: "primary_industry", label: "模板所属行业的一级行业", width: 60 },
  { prop: "deputy_industry", label: "模板所属行业的二级行业", width: 60 },
  { prop: "content", label: "模板内容" },
  { prop: "example", label: "模板示例" }
];
</script>

<style></style>
